package com.flycat.common.enumeration;

import java.util.Arrays;

/**
 * Created by linkun on 2017/9/16.
 */
public enum  ServiceTypeEnum {

    SEE_FLIGHT("1", "接机"),
    BYE_FLIGHT("2", "送机"),
    SEE_STATION("3","接高铁"),
    BYE_STATION("4","送高铁"),
    ;

    public String type;

    public String msg;

    ServiceTypeEnum(String type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    public static ServiceTypeEnum getEnum(String type) {
        return Arrays.stream(ServiceTypeEnum.values()).filter(item-> item.type.equals(type)).findFirst().get();
    }
}
